﻿using DTcms.BLL;
using DTcms.Web.Mvc.UI;
using System;
using System.Data;
using Model = DTcms.Model;

namespace System.Web.Mvc.Html
{
    public static class HtmlHelperPayment
    {
        public static BaseController _base = new BaseController();

        /// <summary>
        /// 返回支付列表
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="strwhere">查询条件</param>
        /// <returns>DataTable</returns>
        public static DataTable get_payment_list(this HtmlHelper htmlHelper, int top, string strwhere)
        {
            return _base.get_payment_list(top, strwhere);
        }

        /// <summary>
        /// 返回支付类型的标题
        /// </summary>
        /// <param name="payment_id">ID</param>
        /// <returns>String</returns>
        public static string get_payment_title(this HtmlHelper htmlHelper, int payment_id)
        {
            return _base.get_payment_title(payment_id);
        }

        /// <summary>
        /// 返回支付费用金额
        /// </summary>
        /// <param name="payment_id">支付ID</param>
        /// <param name="total_amount">总金额</param>
        /// <returns>decimal</returns>
        public static decimal get_payment_poundage_amount(this HtmlHelper htmlHelper, int payment_id, decimal total_amount)
        {
            return _base.get_payment_poundage_amount(payment_id, total_amount);
        }
    }
}
